Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: generate applyconfigurations for API #668

Merged
merged 2 commits into from
Oct 26, 2023
Merged

Conversation

erikgb
Copy link
Member

@erikgb erikgb commented Oct 25, 2023

In order to start our migration to SSA, I am suggesting to generate applyconfigurations using the upstream applyconfiguration-gen from https://github.com/kubernetes/code-generator. This tool is a bit user-unfriendly IMO, so a few tweaks to our Go-code is required to make this happen.

I have long been waiting for kubernetes-sigs/controller-tools#818 to land, but it seems to take "forever", and there are too many benefits from migrating to SSA to wait any longer. If/when this feature becomes available in controller-gen we can migrate to use it.

Since the generated applyconfigurations are initially going to be used by internal controllers, I suggest to put them in an internal package for now. We can consider making them public later on.

Copy link
Contributor

@padlar padlar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@erikgb erikgb merged commit 2301993 into statnett:main Oct 26, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants